#include "mainwindow.h"
#include <QApplication>
#include "newspaper.h"
#include "customer.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    w.show();

    Customer *c = new Customer;
    Newspaper *n = new Newspaper;

    QObject::connect(n, &Newspaper::newPaper, c, &Customer::receiveNewPaper);

    QString name1 = "News paper name 1";
    QString name2 = "News paper name 2";
    n->createNewPaper(name1);
    n->createNewPaper(name2);

    return a.exec();
}
